package com.example.helloworld.fragment;

import android.graphics.Color;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.example.helloworld.base.BaseFragment;

public class OrganizationFragment extends BaseFragment {

    private TextView textView;

    @Override
    protected View initView() {
        Log.i("OrganizationFragment", "组织机构页面被初始化...");
        textView = new TextView(context);
        textView.setTextSize(20);
        textView.setGravity(Gravity.CENTER);
        textView.setTextColor(Color.BLUE);
        return textView;
    }

    @Override
    protected void initData() {
        Log.i("OrganizationFragment", "组织机构的数据加载了..");
        super.initData();
        textView.setText("组织机构页面");
    }
}
